package com.freshmarket.freshmarket.configuration;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class ViewConfiguration implements WebMvcConfigurer {
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/index").setViewName("index");
        registry.addViewController("/user").setViewName("user");
        registry.addViewController("/product").setViewName("product");
        registry.addViewController("/coupon").setViewName("coupon");
        registry.addViewController("/limited").setViewName("limited");
        registry.addViewController("/statistics").setViewName("statistics");
        registry.addViewController("/login").setViewName("login");
    }
}
